package com.wx.springboot.step9back.mapper;

import com.wx.springboot.step9back.model.Collect;
import com.wx.springboot.step9back.model.Like;
import com.wx.springboot.step9back.model.Word;

import java.util.List;
import java.util.Map;

public interface WordMapper {
    List<Word> getSelectList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int addWord(Word word);

    Like getLikeByData(Map<String, Object> data);

    int addLike(Like like);

    int updateLike(Like like);

    Collect getCollectByData(Map<String, Object> data);

    int addCollect(Collect collect);

    int updateCollect(Collect collect);

    int getCountByData(int wordId, String stateCode);

    int updateLikeCount(Map param);
}
